package com.saicmotor.pay.http;


import com.saicmotor.pay.http.Entity.QueryTranStatusEntity;
import com.saicmotor.pay.http.Entity.appendPayRecordEntity;
import com.saicmotor.pay.http.request.appendPayRecordReq;
import com.saicmotor.pay.http.request.queryTranStatusReq;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface Pay_Interface {
    /**
     * 下支付单
     */
    @Headers({"Content-Type: application/json;charset=utf-8",
            "Accept: application/json;charset=utf-8"})
    @POST("payment/public/trans/appendpayrecord/v1")
    Observable<BaseResponse<appendPayRecordEntity>> appendPayRecord(@Body appendPayRecordReq request);

    /**
     * 订单轮询
     */
    @Headers({"Content-Type: application/json;charset=utf-8",
            "Accept: application/json;charset=utf-8"})
    @POST("payment/remote/trans/querytranstatus/v1")
    Observable<BaseResponse<QueryTranStatusEntity>> queryTranStatus(@Body queryTranStatusReq request);
}
